package com.mohe.shanpao.domain.user;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 菜单
 */
@Table(name = "sys_menus")
public class SysMenu
{
    
    @Id
    @Column(name = "id")
    private Long id;//编号
    
    @Column(name = "name")
    private String name;//菜单名称
    
    @Column(name = "icon_url")
    private String iconUrl;//菜单图标
    
    @Column(name = "url")
    private String url;//菜单地址
    
    @Column(name = "description")
    private String description;//菜单描述
    
    @Column(name = "parent_id")
    private Long parentId;//父菜单id
    
    @Column(name = "priority")
    private Long priority;//菜单优先级
    
    @Column(name = "create_time")
    private Date createTime;//创建时间
    
    @Transient
    private List<SysFunction> sysFunctions;//菜单功能
    
	
    public List<SysFunction> getSysFunctions() {
		return sysFunctions;
	}

	public void setSysFunctions(List<SysFunction> sysFunctions) {
		this.sysFunctions = sysFunctions;
	}

	public Long getId()
    {
        return id;
    }
    
    public void setId(Long id)
    {
        this.id = id;
    }
    
    public String getName()
    {
        return name;
    }
    
    public void setName(String name)
    {
        this.name = name;
    }
    
    public String getUrl()
    {
        return url;
    }
    
    public void setUrl(String url)
    {
        this.url = url;
    }
    
    public Long getParentId()
    {
        return parentId;
    }
    
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }
    
    public String getIconUrl() {
		return iconUrl;
	}

	public void setIconUrl(String iconUrl) {
		this.iconUrl = iconUrl;
	}

	public String getDescription()
    {
        return description;
    }
    
    public void setDescription(String description)
    {
        this.description = description;
    }
    
    public Long getPriority()
    {
        return priority;
    }
    
    public void setPriority(Long priority)
    {
        this.priority = priority;
    }
    
    public Date getCreateTime()
    {
        return createTime;
    }
    
    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }
    
}
